package top.yxqz.spring.aop.xml;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author: 余小小
 * @date: 2023/4/13
 * @description：
 * order的默认值： 2147483647
 * 越小，优先级越高
 */
@Component
@Aspect
@Order(1)
public class OtherAspctXml {

    @Before("execution(* top.yxqz.spring.aop.annotation.CalculatorImpl.*(..))")
    public void  beforeAdivceMethod(){
        System.out.println("我是来自于other里的前置通知");
    }
}
